package com.zwd.deep.entity.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AppointmentsDTO {

    /**
     * userId
     */
    private String userId;
    /**
     * doctorId
     */
    private String doctorId;

    /**
     * 预约日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate appointmentDate;

    /**
     * 预约时间
     */
    @DateTimeFormat(pattern = "HH:mm")
    private LocalTime appointmentTime;

}
